//封装和token方法

//存token
const TOKENHEY='token_key'
const setToken=(token)=>{
    localStorage.setItem(TOKENHEY,token)
}

//获取token
const getToken=()=>{
   return localStorage.getItem(TOKENHEY)
}

//移除token
const removeToken=()=>{
    localStorage.removeItem(TOKENHEY)
}

export {setToken,getToken,removeToken}
